<?php
if(!defined('IN_BSTO')){ die('[ERROR] You cannot load this page directly !!!'); }
Class Book extends BaseElement
{
    //nid	summary	detail	thumbnail	large	feature	special	cid
    private $nid        = 0;
    private $sumary     = '';
    private $detail     = '';
    private $thumbnail  = '';
    private $large      = ''; 
    private $feature    = false;
    private $special    = false;
    private $cid        = 0;
    
    private $uid		= 0;
    private $title		= '';
    private $weight		= 0;
    private $created	= null;
    private $changed	= null;
    private $status		= 1;
    
    private $url_rewrite = '';
    

	/**
	 * author: hung.vjnh
	 */    
    public function getURLRewrite()
    {
    	$title = $this->db->cleanEntities($this->title);
    	return $this->nid . "-" . $title;	
    }
    
    public function set($name, $value)
    {
        $this->$name = $value;
    }
    
    public function get($name)
    {
        return $this->$name;
    }
    
    public function save()
    {
       
    }
    
    public function delete()
    {
      
    }
}
?>